Skip to content

NotZeroValidator

Base classes

Name Children Inherits
BlacklistValidator
prettyqt.validators.blacklistvalidator
Validator which excludes a fixed list of strings.

⋔ Inheritance diagram

graph TD
  2522499015["validators.NotZeroValidator"]
  2005087004["validators.BlacklistValidator"]
  422589614["gui.Validator"]
  1804432572["gui.ValidatorMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  49520861["QtGui.QValidator"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  2005087004 --> 2522499015
  422589614 --> 2005087004
  1804432572 --> 422589614
  3227531497 --> 1804432572
  2751680898 --> 3227531497
  49520861 --> 422589614
  3984060476 --> 49520861
  37984305 --> 3984060476
  2751680898 --> 37984305

🛈 DocStrings

Bases: BlacklistValidator

Source code in prettyqt/validators/blacklistvalidator.py
class NotZeroValidator(BlacklistValidator):
    ID = "not_zero"

    def __init__(self, parent: QtCore.QObject | None = None):
        super().__init__(parent=parent)
        self._options = ["0"]

:fa-brands-github: Show source on GitHub